<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('user/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields(false); ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['url_slug']->renderLabel() ?></th>
        <td>
          <?php echo $form['url_slug']->renderError() ?>
          <?php echo $form['url_slug'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['meta_keyword']->renderLabel() ?></th>
        <td>
          <?php echo $form['meta_keyword']->renderError() ?>
          <?php echo $form['meta_keyword'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['meta_description']->renderLabel() ?></th>
        <td>
          <?php echo $form['meta_description']->renderError() ?>
          <?php echo $form['meta_description'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['email_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['email_id']->renderError() ?>
          <?php echo $form['email_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['password']->renderLabel() ?></th>
        <td>
          <?php echo $form['password']->renderError() ?>
          <?php echo $form['password'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['first_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['first_name']->renderError() ?>
          <?php echo $form['first_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['last_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['last_name']->renderError() ?>
          <?php echo $form['last_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['phone']->renderLabel() ?></th>
        <td>
          <?php echo $form['phone']->renderError() ?>
          <?php echo $form['phone'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['fax']->renderLabel() ?></th>
        <td>
          <?php echo $form['fax']->renderError() ?>
          <?php echo $form['fax'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['display_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['display_name']->renderError() ?>
          <?php echo $form['display_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['address1']->renderLabel() ?></th>
        <td>
          <?php echo $form['address1']->renderError() ?>
          <?php echo $form['address1'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['address2']->renderLabel() ?></th>
        <td>
          <?php echo $form['address2']->renderError() ?>
          <?php echo $form['address2'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['city']->renderLabel() ?></th>
        <td>
          <?php echo $form['city']->renderError() ?>
          <?php echo $form['city'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['state']->renderLabel() ?></th>
        <td>
          <?php echo $form['state']->renderError() ?>
          <?php echo $form['state'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['country']->renderLabel() ?></th>
        <td>
          <?php echo $form['country']->renderError() ?>
          <?php echo $form['country'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['postal_code']->renderLabel() ?></th>
        <td>
          <?php echo $form['postal_code']->renderError() ?>
          <?php echo $form['postal_code'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['about_yourself']->renderLabel() ?></th>
        <td>
          <?php echo $form['about_yourself']->renderError() ?>
          <?php echo $form['about_yourself'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['web_url']->renderLabel() ?></th>
        <td>
          <?php echo $form['web_url']->renderError() ?>
          <?php echo $form['web_url'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['photo']->renderLabel() ?></th>
        <td>
          <?php echo $form['photo']->renderError() ?>
          <?php echo $form['photo'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
